/*
 *  Copyright 2003 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */
 
/*
 *  ======== evmdm642_apll.c ========
 *  Analog PLL control for the EVMDM642
 */
 
#include <csl.h>

#include "evmdm642.h"
#include "evmdm642_apll.h"

/* Write to the configuration register on the analog PLL */
void EVMDM642_APLL_rset(Uint16 data)
{
    /* Write data to the APLL */
    *((volatile Uint32 *)(EVMDM642_SYNC_BASE + 4)) = data;

    /* Wait for transmission to complete */
    while ((EVMDM642_rget(EVMDM642_ISR) & 0x20) == 0);
}


